package cn.itcast.day04;

public class Demo01StaticField {

    public static void main(String[] args) {
        Student stu2 = new Student("黄蓉",18);

        Student stu1 = new Student("郭靖",18);
        stu1.room = "101教室";
        System.out.println("姓名是：" + stu1.getName() + "年龄是：" + stu1.getAge() + "教室：" + stu1.room + "学号：" + stu1.getId());
        System.out.println("姓名是：" + stu2.getName() + "年龄是：" + stu2.getAge() + "教室：" + stu2.room + "学号：" + stu2.getId());

    }
}
